package com.fitgreat.smallface.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.fitgreat.smallface.MainActivity;

public class MyReceiver extends BroadcastReceiver {
    private static final String TAG = "MyReceiver";
    static final String ACTION_BOOT ="android.intent.action.BOOT_COMPLETED";

    @Override
    public void onReceive(Context context, Intent intent) {
        if(intent.getAction().equals(ACTION_BOOT)){
            Intent start = new Intent(context,MainActivity.class);
            context.startActivity(start);
        }
    }
}
